colors

This (optional) section defines the colors BibDB uses, when a color screen is used. The format in this environment is

\colors{
  main{<Color>}
  topmenu{<Normal>,<Highlight>,<Bright>}
  menu{<Normal>,<Highlight>,<Bright>}
  message{<Normal>,<Highlight>}
  error{<Normal>,<Highlight>}
  entry{<Normal>,<Highlight>,<EditBorder>}
  edit{<Normal>,<Highlight>,<Mark>}
  list{<Normal>,<Highlight>,<Bright>}
  dialog{<Normal>,<Cursor>,<Highlight>}
  pattern{<Normal>,<Highlight>,<Window>}
  monochrome
  color
}

Each one of the items in < > consists of a pair of colors: a foreground color and a background color. Each color may be specified either by its number or by its name. The characters `<', `>', `(', ), spaces and the word `on' may be used as spacers, to enhance the readability of the file. The available colors are given in Table [*].

Table: The list of permissible colors
0 – Black 4 – Red 8 – DarkGray 12 – LightRed
1 – Blue 5 – Magenta 9 – LightBlue 13 – LightMagenta
2 – Green 6 – Brown 10 – LightGreen 14 – Yellow
3 – Cyan 7 – LightGray 11 – LightCyan 15 – White


Only colors 0 through 7 may be used as background colors. Use the program ``COLORS.EXE'' to see a list of available combinations.

The meaning of the various fields are as follows:

main:
The main screen, on which the entries are displayed.
topmenu:
The menus on the first line of the screen.
menu:
The various popup menus, and the ``fields'' menu in the ``pattern'' screen.
message:
The various informative messages.
error:
The error messages.
entry:
The displayed entry, as seen in the main and ``Entry Edit'' screens, as well as the color of the border marking the ``Entry Edit'' screen.
list:
The list of entries, list of entry types, list of entry fields and list of memory registers.
dialog:
The various dialog (user input) boxes. The ``cursor'' item refers to the cursor of the ``Files'' and ``Options'' menus.
pattern:
The ``Pattern'' screen. The ``Window'' color is the color of the window where the pattern is displayed.

The program will revert to monochrome in the following circumstances: If BibDB detects a monochrome monitor, if the word ``monochrome'' appears in the ``colors'' section, or if the option ``/mono'' appears in the command line. It will go to `color' mode if a color screen is detected, the word ``color'' appears in the ``colors'' section, or the option ``/color'' appears in the command line. In any case, a flag given on the command line supersedes the one given in the configuration file. In color mode, the program will use either the colors defined in the ``colors'' environment, or the default colors defined internally if the ``colors'' environment is missing.